FROM java:8
VOLUME /tmp
ADD target/master-0.0.1-SNAPSHOT.jar  master-0.0.1-SNAPSHOT.jar
#设置时区
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/master-0.0.1-SNAPSHOT.jar"]